<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>个性化订单 - 胎大王</title>
	{include file='common/head' /}
	<link href="__CSS__/jquery.jqzoom.css" rel="stylesheet" type="text/css" />
	<script src="__JS__/layer/layer.js"></script>
</head>
<body>
<div class="container">
{include file='common/top' /}
	<div class="customize">
		<div class="customize-banner"></div>
		<div class="contai">
			<div class="f-bk30"></div>
			<div class="customize-tit">
				<strong>个性化订单</strong>
			</div>
			<p>个性化订单说明：用户通过平台提交规模化定制需求，平台将定制需求提交轮胎专业技术顾问，由技术顾问回复用户进行沟通敲定轮胎定制化需求。</p>
			<div class="f-bk30"></div>
			<div class="customize-content">
				<strong>请认真填写需求表单：</strong>
				<form action="/customizePost.html" method="POST" id="formCustomize" enctype="multipart/form-data">
				<table>
					<tr><td colspan="5"><div class="f-bk20"></div></td></tr>
					<tr class="customize-input">
						<td>轮胎规格：<input type="text" name="specifications" /></td>
						<td>轮胎类型：<input type="text" name="category" /></td>
						<td>适用轮位：<input type="text" name="position" /></td>
						<td>使用路况：<input type="text" name="traffic" /></td>
					</tr>
					<tr class="customize-input">
						<td>轮胎数量：<input type="text" name="quantity" /></td>
						<td>联系电话：<input type="text" name="phone" id="phone" /></td>
					</tr>
					<tr>
						<td colspan="4" >
							<textarea rows="5" name="description" placeholder="详细描述及其他需求"></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="4"><input type="button" id="submit" value="点击提交" class="f-fr"></td>
					</tr>
					<tr><td colspan="5"><div class="f-bk20"></div></td></tr>
				</table>
				</form>
			</div>
		</div>
	</div>
	{include file='common/foot' /}
</div>
{include file='common/back' /}
<script src="__JS__/jquery.form.js"></script>
<script>
$(function(){
	$("#submit").click(function(){
		$("#submit").attr({"disabled":"disabled"});
		var phone = $("#phone").val();
		if(!(/^1[3|4|5|6|7|8|9]\d{9}$/.test(phone))){
			layer.alert("手机号码有误，请重填");
			$("#submit").removeAttr("disabled");
			return false;
		}
		/*var quantity=$("#quantity").val();
		if(parseInt(quantity)<3000){
			layer.alert("商品数量不能低于1000条");
			$("#submit").removeAttr("disabled");
			return false;		
		}*/
		$("#formCustomize").ajaxSubmit(function (data) {
			data = JSON.parse(data);
			if(data.code==1){
				layer.alert("提交成功，请等待客服与您联系",function(){
					window.location.href='/';			
				});
			}else{
				layer.alert(data.msg);
			}
		});
		
	});
});
</script>
</body>
</html>